From dc1510c53dbc6cc7fcc743b3afd31eb2ca3d3317 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Thu, 15 Mar 2012 19:02:59 +0100 Subject: [PATCH] win32: Fix entry theming --- gtk/gtk-win32-base.css | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/gtk/gtk-win32-base.css b/gtk/gtk-win32-base.css index 9cdab970ca..30a37f580f 100644 --- a/gtk/gtk-win32-base.css +++ b/gtk/gtk-win32-base.css @@ -336,17 +336,22 @@ GtkAssistant .sidebar .highlight { .entry { border-width: 1px; border-style: solid; - border-image: -gtk-win32-theme-part(edit, 1 1) 1 1 1 1 stretch; - background-image: -gtk-win32-theme-part(edit, 1 1, margins(-1 -1 -1 -1)); + border-image: -gtk-win32-theme-part(edit, 6 1) 1 1 1 1 stretch; + background-image: -gtk-win32-theme-part(edit, 6 1, margins(-1 -1 -1 -1)); padding: 2px; } .entry:insensitive { - border-image: -gtk-win32-theme-part(edit, 1 4) 1 1 1 1 stretch; - background-image: -gtk-win32-theme-part(edit, 1 4, margins(-1 -1 -1 -1)); + border-image: -gtk-win32-theme-part(edit, 6 4) 1 1 1 1 stretch; + background-image: -gtk-win32-theme-part(edit, 6 4, margins(-1 -1 -1 -1)); + color: #a7aba7; } .entry:prelight { - border-image: -gtk-win32-theme-part(edit, 1 2) 1 1 1 1 stretch; - background-image: -gtk-win32-theme-part(edit, 1 2, margins(-1 -1 -1 -1)); + border-image: -gtk-win32-theme-part(edit, 6 2) 1 1 1 1 stretch; + background-image: -gtk-win32-theme-part(edit, 6 2, margins(-1 -1 -1 -1)); +} +.entry:focused { + border-image: -gtk-win32-theme-part(edit, 6 3) 1 1 1 1 stretch; + background-image: -gtk-win32-theme-part(edit, 6 3, margins(-1 -1 -1 -1)); } /* Spinbuttons */ @@ -569,13 +574,15 @@ GtkProgressBar.trough { } GtkProgressBar.progressbar, -GtkEntry.progressbar { +GtkEntry.progressbar, +GtkEntry.progressbar:focused { border-width: 0; background-image: -gtk-win32-theme-part(progress, 5 1); } GtkProgressBar.progressbar.pulse, -GtkEntry.progressbar.pulse { +GtkEntry.progressbar.pulse, +GtkEntry.progressbar.pulse:focused { background-color: transparent; background-image: -gtk-win32-theme-part(progress, 8 1); } -- 2.30.2